package com.zyd.databindingdemo;

import androidx.databinding.ObservableField;

/**
 * 单向绑定 2
 */
public class User {
    public ObservableField<Integer> age = new ObservableField<>();
    public ObservableField<String> name = new ObservableField<>();
    /**
     * 也可以用一下类型
     *
     * BaseObservable,
     * ObservableBoolean,
     * ObservableByte,
     * ObservableChar,
     * ObservableDouble,
     * ObservableField,
     * ObservableFloat,
     * ObservableInt,
     * ObservableLong,
     * ObservableParcelable,
     * ObservableShort
     */
}
